package pyip.lib.javalearn.aop.dynamicproxy.jdk;

import pyip.lib.javalearn.aop.dynamicproxy.Greeting;
import pyip.lib.javalearn.aop.dynamicproxy.GreetingImpl;

public class Client {

    public static void main(String[] args) {
        // 设置此系统属性,以查看代理类文件
        System.setProperty("sun.misc.ProxyGenerator.saveGeneratedFiles", "true");
        Greeting greeting = new JDKDynamicProxy(new GreetingImpl()).getProxy();
        greeting.sayHello("Jack");
    }
}